package com.design.AdapterMode.AdapterMode;

public class MyObjectAdaptor implements ITarget {

    private MyAdapter adapter;

    public MyObjectAdaptor(MyAdapter adapter) {
        this.adapter = adapter;
    }

    @Override
    public void demo1() {
        adapter.todo1();
    }

    @Override
    public void demo2() {
        adapter.todo2();
    }

    @Override
    public void demo3() {
        adapter.todo3();
    }
}
